package com.ch01.ex25;

/**
 * Created by zc on 2016/1/27.
 */
public class TicketOffice2 implements Runnable {
    private Cinema cinema;

    public TicketOffice2(Cinema cinema) {
        this.cinema = cinema;
    }

    @Override
    public void run() {
        cinema.sellTickets1(20);
        cinema.sellTickets1(2);
        cinema.returnTickets1(5);
        cinema.returnTickets2(6);
        cinema.sellTickets2(3);
        cinema.sellTickets2(20);
    }
}
